Inheritance diagram for Exponent::GUI::Controls::CScrollPanel:

1.0.1 Added getVirtualArea function
1.0.2 Added resetViewPort function
1.0.3 Updated to new format, fixing standard functionality so that it now works :)
1.0.4 Added child sorting
Definition at line 41 of file CScrollPanel.hpp.
| Exponent::GUI::Controls::CScrollPanel::CScrollPanel | ( | IControlRoot * | root, | |
| const long | uniqueId, | |||
| const CRect & | area, | |||
| const CRect & | virtualArea | |||
| ) |
Construction
| root | The root panel | |
| uniqueId | The unique panel id | |
| area | The controls onscreen area (NOT VIRTUAL AREA!!! | |
| virtualArea | The total virtual area that the scroll panel convers |
| virtual Exponent::GUI::Controls::CScrollPanel::~CScrollPanel | ( | ) | [virtual] |
Destruction
| virtual void Exponent::GUI::Controls::CScrollPanel::drawControl | ( | CGraphics & | graphics | ) | [virtual] |
Draw the control
| graphics | The graphics context to draw with |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| const CRect& Exponent::GUI::Controls::CScrollPanel::getVirtualArea | ( | ) | const [inline] |
Get the virtual area
| const | CRect & The virtual area |
Definition at line 99 of file CScrollPanel.hpp.
References m_virtualArea.
| virtual void Exponent::GUI::Controls::CScrollPanel::getWindowCoordinatesOfControl | ( | IControl * | control, | |
| CPoint & | point | |||
| ) | [virtual] |
Get the global location of the control
| control | The control to get the location of | |
| point | The point to store the window position in |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual CPoint Exponent::GUI::Controls::CScrollPanel::getWindowOffset | ( | ) | [virtual] |
Get the window offset of a control
| CPoint* | The window offset as a new point that you own |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleDoubleClick | ( | CMouseEvent & | event | ) | [virtual] |
Handle a double click on the left button
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleLeftButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleLeftButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle left button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleMouseLeavingArea | ( | CMouseEvent & | event | ) | [virtual] |
Handle a mouse leaving the root area
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleMouseMovement | ( | CMouseEvent & | event | ) | [virtual] |
Handle the mouse movement
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleMouseScroll | ( | CMouseEvent & | event | ) | [virtual] |
Handle the scroll wheel
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleRightButtonDown | ( | CMouseEvent & | event | ) | [virtual] |
Handle the right button being clicked
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleRightButtonUp | ( | CMouseEvent & | event | ) | [virtual] |
Handle the right button being released
| event | The event to handle |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::handleScrollEvent | ( | const CScrollEvent & | event | ) | [virtual] |
Handle scrolling events
| event | The scrolling event to handle |
| void Exponent::GUI::Controls::CScrollPanel::setVirtualArea | ( | const CRect & | virtualArea | ) |
Set the virtual area
| virtualArea | The new virtual area |
| void Exponent::GUI::Controls::CScrollPanel::sortChildControls | ( | ) |
Sort the children controls, removing NULL controls
| virtual void Exponent::GUI::Controls::CScrollPanel::updateArea | ( | const CRect & | area | ) | [virtual] |
Update an area
| area | The area to update |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
| virtual void Exponent::GUI::Controls::CScrollPanel::updateControl | ( | IControl * | control | ) | [virtual] |
Update (redraw) a control
| control | The control to redraw |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
CPoint Exponent::GUI::Controls::CScrollPanel::m_inverseViewPointPosition [protected] |
Negative view point position
Definition at line 210 of file CScrollPanel.hpp.
CPoint Exponent::GUI::Controls::CScrollPanel::m_viewPointPosition [protected] |
The amount of offset that we have to apply, aka the view port top left
Definition at line 209 of file CScrollPanel.hpp.
CRect Exponent::GUI::Controls::CScrollPanel::m_virtualArea [protected] |
The virtual area to be convered
Definition at line 208 of file CScrollPanel.hpp.
Referenced by getVirtualArea().